package com.hyt.it.ogt.ks.service.Event;

import org.springframework.context.ApplicationEvent;

import com.hyt.it.ogt.ks.model.entity.mongodb.CandidateAnswerLogBackup;
import com.hyt.it.ogt.ks.model.vo.CandidateQusAnsVO;

import lombok.Getter;
import lombok.ToString;

/**
 * @author wuyingge
 * @ClassName CandidateAnswerLogEvnt.java
 * @Description 考生保存答案请求参数日志事件
 * @createTime 2021年10月23日 17:17:00
 */
@ToString
@Getter
public class CandidateAnswerLogEvent extends ApplicationEvent {

    private CandidateQusAnsVO answerLog;

    private CandidateAnswerLogBackup answerBackup;

    public Integer timeConsumer;

    public CandidateAnswerLogEvent(Integer timeConsumer) {
        super(new Object());
        this.timeConsumer = timeConsumer;
    }

    public CandidateAnswerLogEvent(CandidateQusAnsVO answerLog) {
        super(new Object());
        this.answerLog = answerLog;
    }

    public CandidateAnswerLogEvent(CandidateAnswerLogBackup answerBackup){
        super(new Object());
        this.answerBackup = answerBackup;
    }

    public CandidateAnswerLogEvent(CandidateAnswerLogBackup answerBackup, CandidateQusAnsVO answerLog){
        super(new Object());
        this.answerBackup = answerBackup;
        this.answerLog = answerLog;
    }

}
